<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-companyProcurement-add">
			<div class="form-group">
				<label class="col-sm-3 control-label">项目Id：</label>
				<div class="col-sm-8">
					<input id="projectId" name="projectId" class="form-control" type="text" th:field="*{projectInfo.projectId}" readonly="readonly">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">公司名称：</label>
				<div class="col-sm-8">
					<select id="company" name="company" class="form-control m-b" th:with="type=${@attendanceInfoServiceImpl.getCompanyList()}">
						<option th:each="dict : ${type}" th:text="${dict}" th:value="${dict}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">人员资质：</label>
				<div class="col-sm-8">
					<input id="staffLevel" name="staffLevel" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工作量：</label>
				<div class="col-sm-8">
					<input id="workload" name="workload" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">人数：</label>
				<div class="col-sm-8">
					<input id="staffNu" name="staffNu" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">已使用人月：</label>
				<div class="col-sm-8">
					<input id="used" name="used" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "pm/companyProcurement"
		$("#form-companyProcurement-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-companyProcurement-add').serialize());
	        }
	    }
	</script>
</body>
</html>
